import wy from '@/utils/axios/wy';


//获取地址信息
export function getPreListApi() {
    return wy.request({
        url: '/member/order/pre',
        method: 'get'
    })
}

//添加地址信息
export function addPreApi(data) {
    return wy.request({
        url: '/member/address',
        method: 'post',
        data
    })
}

//修改地址信息
export function updatePreApi(id, data) {
    return wy.request({
        url: `/member/address/${id}`,
        method: 'put',
        data
    })
}